package jedis.util;

import jedis.demo.JedisApI;

public class JedisUtil {

    /**
     * 获取jedisApI
     *
     * @throws Exception
     */
    public static JedisApI starUp()throws Exception{
        return new JedisApI();
    }

    /**
     * 销毁jedisApI
     *
     * @throws Exception
     */
    public static void tearDown(JedisApI jedisApI)throws Exception{
        if(jedisApI!=null){
            jedisApI.destroy();
        }
    }
}
